<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.common.DateTimeFromConver"%>
<%@page import="com.tjsinfo.tjsoa.worklog.vo.WorkLogMain"%>
<%@page import="com.tjsinfo.tjsoa.system.vo.TSystemUser"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <base href="<%=basePath%>"/>
	<title>粮油集团办公自动化协作平台</title>
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="style/txlz7.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" >
	function tdchick(time)
	{
		return;
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('xiugai').style.display = "none" ;
		document.getElementById('shanchu').style.display = "none" ;
		document.getElementById('chaxun').style.display = "none" ;
		// document.getElementById('wcqk').style.display = "none" ;
		document.getElementById('tianja').style.display = "inline" ;
		document.getElementById('time').value=time;
		
	}
	function tdchick2(time,id)
	{
		
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('tianja').style.display = "none" ;
		document.getElementById('xiugai').style.display = "none" ;
		document.getElementById('shanchu').style.display = "none" ;
		document.getElementById('chaxun').style.display = "inline" ;
		// document.getElementById('wcqk').style.display = "none" ;
		document.getElementById('worklogid').value  = id;
		document.getElementById('time').value=time;
		
	}
	function tdchick3(time,id)
	{
		document.getElementById('black_over').style.display = "block";
		document.getElementById('addfrom').style.top =  document.body.clientHeight/2;
		document.getElementById('addfrom').style.left = document.body.clientWidth/5;
		document.getElementById('time').value=time;
		document.getElementById('worklogid').value  = id;
		document.getElementById('addfrom').style.display = "block";
		document.getElementById('tianja').style.display = "none" ;
		document.getElementById('shanchu').style.display = "none" ;
		document.getElementById('chaxun').style.display = "inline" ;
		document.getElementById('xiugai').style.display = "none" ;
		
	}
	function addWorkLog()
	{
		document.form1.submit();
	}
	function deleteWorkLog()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/worklog/deleteWorkLog.do');
		document.form1.submit();
	}
	function updateWorkLog()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/worklog/selectOneWorkLog.do');
		document.form1.submit();
	}
	function pishiWorkLog()
	{
		document.form1.submit();
	}
	function chaxunWorkLog()
	{
		var form1 =  document.getElementById('form1');
		form1.setAttribute('action','<%=basePath%>tjsinfo/tjsoa/worklog/selectWorkLog.do');
		document.form1.submit();
	}
	function qx()
	{
		document.getElementById('black_over').style.display = "none";
		document.getElementById('addfrom').style.display = "none";
	}
</script>
<style >
	.contact_content {
			display: none;
			position: absolute;
			border: 1px solid #FFF;
			border-bottom:none;
			z-index:1800;
			overflow: auto;
		}
		.black_overlays{
			display: none;
			position: absolute;
			top: 0%;
			left: 0%;
			width: 100%;
			height: 100%;
			background-color: #C1EBFC;
			z-index:1002;
			-moz-opacity: 0.8;
			opacity:.80;
			filter: alpha(opacity=30);
		}
	
</style>
<style>
.lan01{
background: url(images/lanbg01.gif) no-repeat 0 0; width:6px; height:24px;} 
.lan02{
background: url(images/lanbg02.gif) repeat-x; width:99%; height:24px;}            
.lan03{
background: url(images/lanbg03.gif) no-repeat; width:8px; height:24px;}             
.cha{
padding-top:3px}           
</style>
  </head>
  <body>
  	<%
			Date date = (Date)request.getAttribute("yueli");
			TSystemUser tjsuser = (TSystemUser)request.getAttribute("tjsuser");
			Map map = (Map)request.getAttribute("map");
			Integer userid = (Integer)request.getAttribute("userid");
		%>
    <div id="right">
      <div class="p_011">
		    <ul>
              <li class="s09"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogDateModle.do?id=<%=userid %>">日报</a></li>
                <li class="s09"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogWeekModle.do?id=<%=userid %>">周报</a></li>
                <li class="s09"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogMonthModle.do?id=<%=userid %>">月报</a></li>
                <li class="s09"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLogMonthJiDuModle.do?id=<%=userid %>">季报</a></li>
                <li class="s09"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogHalfYearModle.do?id=<%=userid %>">半年报</a></li>
                <li class="s09"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogYearModle.do?id=<%=userid %>">年报</a></li>
                <li class="s09"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkDefalntWorkLog.do">返回</a></li>
            </ul>
	  </div>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="92%">
          <tr>
            <td width="100%" valign="top" height="100%">
               <div class="contabwd">
                 <div id="plan_month">
                    <!--周记录-->
                   <div class="plan_div" >
                     <table width="100%" border="0" class="page">
                        <tr>
                          <td width="28%"><%=tjsuser.getUserName() %>工作半年报&nbsp;</td>
                          <td width="5%"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogHalfYearModleUp.do?date=<%=DateTimeFromConver.zhuanhuariqi(date) %>&id=<%=userid %>" class="a1">去年</a></td>
                          <td width="3%">&nbsp;</td>
                          <td width="31%"><strong><%=date.getYear()+1900 %>年1月1日 至 <%=date.getYear()+1900 %>年12月31日</strong></td>
                          <td width="7%"><a href="<%=basePath%>tjsinfo/tjsoa/worklog/checkworkLogHalfYearModleDown.do?date=<%=DateTimeFromConver.zhuanhuariqi(date) %>&id=<%=userid %>"  class="a2">明年</a></td>
                          <td width="26%">&nbsp;</td>
                        </tr>
                     </table>
                     <br /><br /><br /><br />
                      <table width="433" height="117" border="0" align="center" cellpadding="0" cellspacing="0">
                          <tr>
                            <td width="61" background="images/fhy01.gif">&nbsp;</td>
                            <td width="99" background="images/fhy02.gif" align="center">
                             <%
                             	if(map.get(1)== null)
                             	{
                             %>
                            	<a href="javascript:tdchick('1')" ><img src="images/wuhy.gif" /></a> 
                             <% 		
                             	}
                             	else 
                             	{
                             		WorkLogMain workLogMain = (WorkLogMain)map.get(1);
                             		if(workLogMain.getStart() == 1)
                             		{
                             %>
                             	<a href="javascript:tdchick2('1','<%=workLogMain.getId() %>')" ><img src="images/yzdhy.gif" /></a>
                             <% 			
                             		}
                             		else if(workLogMain.getStart() == 2)
                             		{
                             %>
                             	<a href="javascript:tdchick3('1','<%=workLogMain.getId() %>')" ><img src="images/ycyhy.gif" /></a>
                             <% 			
                             		}
                             		else if(workLogMain.getStart() == 3)
                             		{
                             %>
                             	<a href="javascript:void(0)"><img src="images/ywchy.gif" /></a>
                             <% 			
                             		}
                             			
                             	}
                             %>
                            
                            
                            </td>
                            <td width="113" background="images/middle.gif">&nbsp;</td>
                            <td width="98" background="images/lhy02.gif" align="center">
                              <%
                             	if(map.get(2)== null)
                             	{
                             %>
                            	<a href="javascript:tdchick('2')" ><img src="images/wuhy.gif" /></a> 
                             <% 		
                             	}
                             	else 
                             	{
                             		WorkLogMain workLogMain = (WorkLogMain)map.get(2);
                             		if(workLogMain.getStart() == 1)
                             		{
                             %>
                             	<a href="javascript:tdchick2('2','<%=workLogMain.getId() %>')"  ><img src="images/yzdhy.gif" /></a>
                             <% 			
                             		}
                             		else if(workLogMain.getStart() == 2)
                             		{
                             %>
                             	<a href="javascript:tdchick3('2','<%=workLogMain.getId() %>')" ><img src="images/ycyhy.gif" /></a>
                             <% 			
                             		}
                             		else if(workLogMain.getStart() == 3)
                             		{
                             %>
                             	<a href="javascript:void(0)"><img src="images/ywchy.gif" /></a>
                             <% 			
                             		}
                             			
                             	}
                             %>	
                            </td>
                            <td width="62" background="images/lhy01.gif">&nbsp;</td>
                          </tr>
                     </table>
                   </div>
                    
                </div>
              </div>
            </td>
          </tr>
      </table>
      
</div>

<form action="<%=basePath%>tjsinfo/tjsoa/worklog/InstructionWorkLogFrom.do" name="form1" method="post" id="form1">
		<div class="contact_content" id="addfrom">
             <table width="478" border="0" cellpadding="0" cellspacing="0" >
               <tr>
                 <td>
                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="lan01">&nbsp;</td>
                        <td class="lan02">
                          <table width="99%" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td width="5%" align="center" style="padding-top:3px;"><img src="images/m_icon051.gif" /></td>
                                <td width="89%" align="left" style="color:#FFFFFF; font-weight:bold;padding-top:3px;">编辑</td>
                                <td width="6%"><div class="cha"><a href="javascript:qx()"><img src="images/cha.gif" /></a></div></td>
                              </tr>
                           </table>
                        </td>
                        <td class="lan03">&nbsp;</td>
                      </tr>
                  </table>
                 </td>
               </tr>
               <tr>
                 <td height="109" class="zz">
                     <table width="90%" height="80%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                      <tr>
                        <td width="17%" align="center"><img src="images/bjicon.jpg" /></td>
                        <td width="83%" align="left">如有需要请点击以下按钮</td>
                      </tr>
                      <tr>
                        <td colspan="2" style="border-top:1px #CFCFD1 solid" align="center">
                        <a href="javascript:addWorkLog()" ><img src="images/tianjia.gif" id="tianja"/></a>&nbsp;
                        <a href="javascript:updateWorkLog()" ><img src="images/xiugai.gif" id="xiugai"/></a>&nbsp;
                        <a href="javascript:deleteWorkLog()" ><img src="images/shanchu.gif" id="shanchu"/></a>&nbsp;	
                        <a href="javascript:pishiWorkLog()" ><img src="images/pishi.gif" id="pishi"/></a>&nbsp;   
                        <a href="javascript:chaxunWorkLog()" ><img src="images/chaxun.gif" id="chaxun" /></a>&nbsp;
                        <a href="javascript:qx()" ><img src="images/qx.gif" id="qx"/></a>
                        </td>
                       </tr>
                    </table>
                 </td>
               </tr>
             </table>
            </div>
		<input  type="hidden" name="type" value="<%="H"%>"/>
		<input  type="hidden" name="year" value="<%=date.getYear()+1900%>"/>
		<input  type="hidden" name="number" value="0"/>
		<input  type="hidden" name="time" value="" id="time"/>
		<input  type="hidden" name="id" value="" id="worklogid"/>
		<input  type="hidden" name="userid" value="<%=userid %>" id="userid"/>
		
	</form>
   
   
                        <div class="black_overlays" style="display: none;" id="black_over"></div>
  </body>
</html>
